<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:requestEncoding value="utf-8" />
<jsp:useBean id="bvo" class="jech913.model.BoardVO" />
<jsp:setProperty name="bvo" property="*" />


<sql:update dataSource="jdbc/oracle11xe">
	delete from board 
	where bdno=?
	<%--view.jsp?bdno=123에서 삭제하기 클릭 시 delete.jsp?bdno=123으로 이동해서 
		거기서 bdno=123을 가져와서 sql문 실행 --%>
	<sql:param value="${param.bdno}" />
</sql:update>

<c:if test="${empty sessionScope.login}">
	<c:redirect url="login.jsp" />
</c:if>
<c:if test="${not empty sessionScope.login}">
	<c:redirect url="list.jsp" />
</c:if>